package com.example.oracle.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.oracle.entity.UserEntity;
import com.example.oracle.mapper.UserMapper;
import com.example.oracle.service.IUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @description: 实现类
 * @author: ydf
 * @date: 2020/12/20 23:54
 * @version: v1.0
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, UserEntity> implements IUserService {

    @Resource
    private UserMapper userMapper;

    @Override
    public UserEntity getUserById(Integer userId) {
        return userMapper.getUserById(userId);
    }
}
